package com.ruoyi.collect.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 菜谱收藏对象 recipe_favorites
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
public class RecipeFavorites extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏记录ID */
    private String id;

    /** 菜谱ID */
    @Excel(name = "菜谱ID")
    private String recipeId;

    /** 收藏用户ID */
    @Excel(name = "收藏用户ID")
    private String userId;

    /** 是否删除：0正常 1删除 */
    @Excel(name = "是否删除：0正常 1删除")
    private Integer del;

    @TableField(exist = false)
    private Users users;

    @TableField(exist = false)
    private CollectRecipes recipes;

    public CollectRecipes getRecipes() {
        return recipes;
    }

    public void setRecipes(CollectRecipes recipes) {
        this.recipes = recipes;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setRecipeId(String recipeId) 
    {
        this.recipeId = recipeId;
    }

    public String getRecipeId() 
    {
        return recipeId;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("recipeId", getRecipeId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .append("Users", users)
            .append("recipes", recipes)
            .toString();
    }
}
